package com.yx.alioss.config;

/**
 * @author niejiahuan
 */
//定义为配置类

import com.yx.alioss.properties.AliOssPropertie;
import com.yx.alioss.service.AliOssService;
import com.yx.alioss.service.impl.AliOssServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
//在web工程条件下成立
@ConditionalOnWebApplication
//启用HelloProperties配置功能，并加入到IOC容器中
@EnableConfigurationProperties({AliOssPropertie.class})
//导入HelloService组件
@Import(AliOssServiceImpl.class)
public class AliOssAutoConfiguration {
}
